//
//  MenuScene.m
//  Coffee
//
//  Created by sabhanayagam b on 4/27/11.
//  Copyright 2011 Cognizant. All rights reserved.
//

#import "MenuScene.h"
#import "MMainLayer.h"
#import "MSettingsLayer.h"
#import "MLevelLayer.h"

@implementation MenuScene

// on "init" you need to initialize your instance
-(id) init
{
	// always call "super" init
	// Apple recommends to re-assign "self" with the "super" return value
	if( (self=[super init] )) {
		/*
		//Adding BackGround
		CCSprite* backGround = [CCSprite spriteWithFile:@"Sky BackGround.jpg"];
		backGround.anchorPoint = ccp(0,0);
		//position = CGPointMake(screenSize.width / 2, screenSize.height / 2);
		[self addChild:backGround];
		*/
		CCLayerColor* colorLayer = [CCLayerColor layerWithColor:ccc4(214, 214, 214, 255)];
		[self addChild:colorLayer z:0];
		
		
		//Add Menu Layers Main Levels Settings
		CCMultiplexLayer *menu = [CCMultiplexLayer layerWithLayers:[MMainLayer node] , [MSettingsLayer node] , [MLevelLayer node] , nil];
		[self addChild: menu z:1];

	}
	return self;
}

// on "dealloc" you need to release all your retained objects
- (void) dealloc
{
	// in case you have something to dealloc, do it in this method
	// in this particular example nothing needs to be released.
	// cocos2d will automatically release all the children (Label)
	
	// don't forget to call "super dealloc"
	[super dealloc];
}



@end
